﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace DmxTestTool.Model
{
    public delegate void CommandExecute(object parameter);
    public class UserCommand : ICommand
    {
        public event EventHandler CanExecuteChanged;
        public event CommandExecute CommandExecute;

        public UserCommand()
        {

        }
      
        public bool CanExecute(object parameter)
        {
            return true;
        }

        public void Execute(object parameter)
        {
            CommandExecute.Invoke(parameter);
        }
    }
}
